package com.lx.boot.web.filter;

import com.lx.annotation.Note;
import jakarta.servlet.ServletRequest;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Component;

import java.io.IOException;

@Note("默认不进行参数加解密")
@Component("defaultApiFilter")
public class DefaultApiEncryptFilter extends ApiEncryptFilter {
    @Override
    protected RequestWrapper getRequestWrapper(HttpServletRequest request , byte[] bodys, boolean notEncryptionUrl) throws IOException {
        return new RequestWrapper(request, bodys);
    }
}
